package designpattern.command;

/**
 * TODO:类描述
 *
 * @className: TV
 * @packageName: designpattern.command
 * @author: Zhuhj
 * @version: V1.0
 * @date: 2021/4/21 19:49
 */
public class TV {
    private int channel = 1;
    public void turnOff(){
        System.out.println("关机");
    }
    public void turnOn(){
        System.out.println("开机");
    }
    public void changeChanel(int channel){
        this.channel = channel;
        System.out.println("换台 "+this.channel);
    }
}
